import { get, post } from "@/utils/request";
export const login = (data = {}) => {
  return post("/vue-admin-template/user/login", data);
};

// export const login = (data = {}) => {
//     console.log(data)
//     return post('admin/webapp/logina', {
//         userName: data.username,
//         passWord: data.password
//     })
// }

export const getInfo = token => {
  return get("/vue-admin-template/user/info", {
    token: token
  });
};

export const logout = () => {
  return post("/vue-admin-template/user/logout");
};
